import Vue from 'vue'
import to from 'await-to-js'
import App from './App.vue'
import router from "@/router";
import store from '@/store'
import '@/main/validator'
import '@/main/publicCom'
import '@/main/elementUI'
import '@/main/loazyload'
import '@/mock'


Vue.config.productionTip = false


new Vue({
    render: h => h(App),
    beforeCreate() {
        Vue.prototype.$bus = this
        //收集async/await报错信息的库
        Vue.prototype.$to = to
    },
    router,
    store,
}).$mount('#app')
